
#include "dominion.h"
#include <stdio.h>
#include "rngs.h"
#include <assert.h>
#include <stdlib.h>
#include <math.h>

int main(int argc, char** argv){
    struct gameState GameS;
    int k[10] = {adventurer, gardens, embargo, village, minion, mine, cutpurse,
        sea_hag, baron, great_hall};
    int numPlayers = 2;
    int num1= 0, num2= 0;
    int handPos = 0, rm5 = 0, gn4 = 0;
    int bonus = 0;
	int nm5;
    for (num1=2; num1<5; num1++){
        numPlayers = num1;
        for(num2=0; num2<numPlayers; num2++){
            initializeGame(numPlayers, k, atoi(argv[1]), &GameS);
            GameS.whoseTurn = num2;
            nm5 = GameS.handCount[num2];
            gn4 = GameS.gn4;
            cardEffect(village, 0, 0, 1, &GameS, handPos, &bonus);
            if (GameS.handCount[num2] == nm5){
            }
            else
            printf("else happened inside handcount equal to the correct cards")
            }
            if (GameS.gn4 == gn4 + 2){
	printf("so far so good");
            }
        }

	printf("card test passsed \n");

    return 0;
}

